package com.sakhalin.news.viewmodels

import androidx.lifecycle.ViewModel
import com.sakhalin.news.network.DataLoadingState
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow

const val NO_DATA_ERROR_TEXT = "Не удалось получить данные. Повторите запрос позже."

open class BaseViewModel: ViewModel() {

    protected val _loadingState = MutableStateFlow<DataLoadingState>(DataLoadingState.Loading())
    val loadingState: StateFlow<DataLoadingState> get() = _loadingState

}